#!/usr/bin/python
# -*- coding: utf-8 -*-

#from django.core import validators

def validation_user_passwd(p1, p2):
    if p1 != p2:
        #raise validators.ValidationError('两次输入的密码不一致')
        return False
    else:
        return True